package com.xm.service.service.impl;

import com.xm.mapper.OrdersMapper;
import com.xm.pojo.Orders;
import com.xm.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrdersServiceImpl implements OrdersService {
    @Autowired
    private OrdersMapper ordersMapper;


    @Override
    public List<Orders> findOrders() {
        return ordersMapper.findOrders();
    }

    @Override
    public List<Orders> findGid(Integer[] ids) {
        return ordersMapper.findGid(ids);
    }


    @Override
    public void add(Orders orders) {
        ordersMapper.add(orders);
    }


    @Override
    public void updateOrder(Orders orders) {
        ordersMapper.updateOrder(orders);
    }

    @Override
    public Integer getordersNum() {
        return ordersMapper.getordersNum();
    }

    @Override
    public void batchDel(Integer[] ids) { ordersMapper.batchDel(ids);}

    @Override
    public void logicDelete(Orders orders) {
        ordersMapper.logicDelete(orders);
    }

    @Override
    public List<Orders> findGid(String p) {
        return ordersMapper.findGid(p);
    }

    @Override
    public List<Orders> findUid(String p) {
        return ordersMapper.findUid(p);
    }

    @Override
    public List<Orders> findAmount(String p) {
        return ordersMapper.findAmount(p);
    }

    @Override
    public List<Orders> findOtype(String p) {
        return ordersMapper.findOtype(p);
    }
}
